<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>物流基础信息</title>
    <link rel="shortcut icon" href="favicon.ico">
    <script src="../../res/js/comm.js"></script>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="panel panel-info">
        <div class="panel-heading"><i class="fa fa-info-circle"></i> 物流基础信息</div>
        <div class="panel-body">
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div id="partnerbar"></div>
                    <table id="table">
                        <thead>
                            <tr>
                                <th data-field="stats" data-checkbox="true"></th>
                                <th data-align="center" data-field="logisticsId">物流编码</th>
                                <th data-align="center" data-field="name">物流公司</th>
                                <th data-align="center" data-field="nickname">物流别名</th>
                                <th data-align="center" data-field="hotlinePhone">物流电话</th>
                                <th data-align="center" data-field="address">公司地址</th>
                                <th data-align="center" data-field="remark">备注信息</th>
                                <th  data-field="status" data-formatter="statusFormat" data-width="70px">状态</th>
                            </tr>
                        </thead>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<!--新增物流界面-->
<script type="text/html" id="partnerformtpl">
    <form class="form-horizontal" id="partnerform">
        <div class="col-md-12" style="width: 400px;margin-top: 20px">

            <div class="form-group" style="{{!d.logisticsId ? '':'display:none'}}">
                <label class="col-sm-4 control-label"><font color="red">* </font>物流编码：</label>
                <div class="col-sm-8">
                    <input name="logisticsId" id="logisticsId" class="form-control" placeholder="请输入唯一编码如：SF"  type="text" title="必填字段" required="true" value="{{!d.logisticsId ? '':d.logisticsId}}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-4 control-label"><font color="red">* </font>物流公司：</label>
                <div class="col-sm-8">
                    <input name="name" id="name" class="form-control" placeholder="请输入物流公司" type="text" title="必填字段" required="true" value="{{!d.name ? '':d.name}}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-4 control-label"><font color="red">* </font>物流别名：</label>
                <div class="col-sm-8">
                    <input name="nickname" id="nickname" class="form-control" placeholder="请输入物流别名"    type="text" required="true" value="{{!d.nickname ? '':d.nickname}}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-4 control-label">物流电话：</label>
                <div class="col-sm-8">
                    <input name="hotlinePhone" id="hotlinePhone" class="form-control" placeholder="请输入物流电话" type="text"  value="{{!d.hotlinePhone ? '':d.hotlinePhone}}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-4 control-label">公司地址：</label>
                <div class="col-sm-8">
                    <input name="address" class="form-control" placeholder="请输入公司地址" type="text" value="{{!d.address ? '':d.address}}">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-4 control-label">备注信息：</label>
                <div class="col-sm-8">
                    <input name="remark" class="form-control" placeholder="请输入物流备注" type="text"   value="{{!d.remark ? '':d.remark}}">
                </div>
            </div>

        </div>
    </form>
</script>


</body>
</html>
<script type="text/javascript">
    (function () {
     $.openx.loadScript(['../../js/logistics/partnerList.js']);
    })();
</script>


